Skip to main content

storage account creation

  1. To Create this azure storage account we need to authenticate ourselves first on the azure cli.
az login
  • other commands
az account show

sometimes it could be difficult to authenticate to the az cli. it might not show the account sessions that are logged in your browser. So, you have to add Windows Hello passkey (the microsoft account) in your Settings>Accounts>Passkeys if you are trying to login in Windows os.

  • use the command:
az login --use-device-code
  • sample output:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code NE******5L to authenticate.        

Retrieving tenants and subscriptions for the selection...

[Tenant and subscription selection]

No Subscription name Subscription ID Tenant
----- ------------------- ------------------------------------ -----------------
[1] * Azure for Students 9xxxxxxd-7xx4-4xxc-ad69-c01xxxxxx09b Default Directory

The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure for Students' (9xxxxxxd-7xx4-4xxc-ad69-c01xxxxxx09b).

Select a subscription and tenant (Type a number or Enter for no changes): 1

Tenant: Default Directory
Subscription: Azure for Students (9xxxxxxd-7xx4-4xxc-ad69-c01xxxxxx09b)

[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236

If you encounter any problem, please open an issue at https://aka.ms/azclibug

[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.